using System.Collections.Generic;
using UnityEngine;

public class FakeRoom
{
	public float c0;

	public string name;

	public List<MatchTestPlayer> players = new List<MatchTestPlayer>();

	public Transform roomTransform;

	public bool isInMatch
	{
		get
		{
			return players.Count >= 2;
		}
	}

	public bool isPlayerInside(MatchTestPlayer player)
	{
		foreach (MatchTestPlayer player2 in players)
		{
			if (player2 == player)
			{
				return true;
			}
		}
		return false;
	}

	public void Add(MatchTestPlayer player)
	{
		players.Add(player);
		player.transform.parent = roomTransform;
		foreach (MatchTestPlayer player2 in players)
		{
			player2.SetConnected(this);
		}
	}
}
